package com.rk.kbk.model;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rk.kbk.common.DateJsonDeserializer;
import com.rk.kbk.common.DateJsonSerializer;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import javax.persistence.*;

/**
 * @ServeRate
 * @(serve_rate)
 * @version : Ver 1.0
 */
@Entity
public class ServeRate implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * @备注:主键
	 * @字段:id BIGINT(19)
	 */
	@Id
	@GeneratedValue(strategy= GenerationType.IDENTITY)
	@GenericGenerator(name="auto-identity",strategy="identity")
	@Column(updatable = false, columnDefinition="BIGINT(19) COMMENT '主键'")
	private Long id;

	/**
	 * @备注:区域代码
	 * @字段:area_code VARCHAR(255)
	 */
	@Column(columnDefinition="VARCHAR(255) COMMENT '区域代码'")
	private String areaCode;

	/**
	 * @备注:全职费率
	 * @字段:fulltime_rate DOUBLE(33)
	 */
	@Column(columnDefinition="DOUBLE(33) COMMENT '全职费率'")
	private Double fulltimeRate;

	/**
	 * @备注:
	 * @字段:parttime_rate DOUBLE(33)
	 */
	@Column(columnDefinition="DOUBLE(33) COMMENT ''")
	private Double parttimeRate;

	/**
	 * @备注:状态 0正常 1禁止
	 * @字段:status INT(10)
	 */
	@Column(columnDefinition="INT(10) COMMENT '状态 0正常 1禁止'")
	private Integer status;

	/**
	 * @备注:
	 * @字段:gmt_datetime DATETIME(19)
	 */
	@Column(updatable = false, columnDefinition="DATETIME(19) COMMENT ''")
	@JsonSerialize(using=DateJsonSerializer.class)
	@JsonDeserialize(using=DateJsonDeserializer.class)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
	private java.util.Date gmtDatetime = new java.util.Date();

	/**
	 * @备注:
	 * @字段:upt_datetime DATETIME(19)
	 */
	@Column(columnDefinition="DATETIME(19) COMMENT ''")
	@JsonSerialize(using=DateJsonSerializer.class)
	@JsonDeserialize(using=DateJsonDeserializer.class)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
	private java.util.Date uptDatetime = new java.util.Date();

	public ServeRate(){
	}

	public ServeRate(
		Long id
	){
		this.id = id;
	}



	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return this.id;
	}


	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}

	public String getAreaCode() {
		return this.areaCode;
	}


	public void setFulltimeRate(Double fulltimeRate) {
		this.fulltimeRate = fulltimeRate;
	}

	public Double getFulltimeRate() {
		return this.fulltimeRate;
	}


	public void setParttimeRate(Double parttimeRate) {
		this.parttimeRate = parttimeRate;
	}

	public Double getParttimeRate() {
		return this.parttimeRate;
	}


	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getStatus() {
		return this.status;
	}


	public void setGmtDatetime(java.util.Date gmtDatetime) {
		this.gmtDatetime = gmtDatetime;
	}

	public java.util.Date getGmtDatetime() {
		return this.gmtDatetime;
	}


	public void setUptDatetime(java.util.Date uptDatetime) {
		this.uptDatetime = uptDatetime;
	}

	public java.util.Date getUptDatetime() {
		return this.uptDatetime;
	}
}
